
export const leaveType = [
  { label: '事假', value: 4 },
  { label: '补休', value: 5 },
  { label: '年假', value: 6 },
  { label: '婚假', value: 0 },
  { label: '产假', value: 1 },
  { label: '病假', value: 2 },
  { label: '丧假', value: 3 },
  { label: '陪产假', value: 7 },
  { label: '哺乳假', value: 8 },
  { label: '产检假', value: 9 }
];

export const overtimeType = [
  { label: '工作日加班', value: 0 },
  { label: '周末加班', value: 1 },
  { label: '节假日加班', value: 2 }
];

export const approveStatusList =[
  { label: '待发起', value: 0, color: '#aaaaaa' },
  { label: '审批中', value: 1, color: '#4357f3' },
  { label: '已审批', value: 2, color: '#0DBC24' },
  { label: '作废', value: 3, color: '#BC2227' }
];

export const scoreStatusList =[
  { label: '未评分', value: 0, color: '#cccccc' },
  { label: '已评分', value: 1, color: '#0DBC24' },
  { label: '已终止', value: 2, color: '#BCAE4A' },
];

export const bpmTypeEnum = [
  {label: '班子成员（高管）', value: 1},
  {label: 'M7-M12/P8-P13', value: 2},
  {label: 'M1-M6/P4-P7', value: 3},
  {label: 'P3级以下', value: 4},
];

export const getIndex = (selectList, matchVal) => {
  return selectList.findIndex(item => item.value.toString() === `${matchVal}`);
};
